package com.ilop.sthome.mvp.contract.message;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.bean.DeviceHistoryBean;
import com.ilop.sthome.data.bean.WarnBean;

import java.util.List;

/**
 * @author skygge
 * @Date on 2020-02-22.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface AlarmLogContract {

    interface IView extends IBaseView{

        void showHistory(List<DeviceHistoryBean> history);

        void withoutData();

        void withoutGateway();

        void showProgress();
    }

    interface IPresent extends IBasePresenter<IView>{

        void sendGatewaySyn(int page, boolean isReceive);

        void getAlarmLogs(List<WarnBean> list);

        void refreshView();
    }

}
